home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jdadson@ix.netcom.com(Jive Dadson )
- Newsgroups: comp.lang.c
- Subject: Re: Why is C faster than FORTRAN?
- Date: 23 Mar 1996 08:22:45 GMT
- Organization: Netcom
- Message-ID: <4j0ccl$8na@cloner3.netcom.com>
- References: <1996Mar20.132506.91237@ucl.ac.uk>
- NNTP-Posting-Host: ple-ca11-24.ix.netcom.com
- X-NETCOM-Date: Sat Mar 23 12:22:45 AM PST 1996
-
-
-
- >In article <4i4poj$j7e@thorn.cc.usm.edu>, sakalauk@coam.usm.edu (Peter
- >Sakalaukus) writes:
- > I have two programs, FORTRAN and C. They both use the same algorithm
- to
- > manipulate numeric data. The larger the data file though, the faster
- the
- > C version is, (in relation to the FORTARN program). I am running on a
- UNIX
- > platform.
-
- FORTRAN and C organizes multi-dimensional arrays in different orders.
- If your program accesses large matrixes with the inner loop indexing
- over the columns, that could be the difference. Or it could just be
- that your UNIX box has a better C compiler than FORTRAN compiler.
- Or as someone pointed out, the FORTRAN runtime support (file I/O
- for example) may be poorly written.
-
- Jive
-
-